use ormlite::Model;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug, Model)]
pub struct WechatUser {
    #[ormlite(primary_key)]
    pub user_id: Option<i64>,
    pub user_name: Option<String>,
    pub open_id: Option<String>,
    pub head_img: Option<String>,
    pub wxid: Option<String>,
    pub score: Option<i64>,
    pub invite_code: Option<String>,
    pub invite_count: Option<i64>,
    pub member_start_time: Option<String>,
    pub member_end_time: Option<String>,
    pub member_type: Option<i8>,
    pub create_time: Option<String>,
    pub state: Option<i8>,
}

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct WechatUserPageReq {
    pub user_id: Option<i64>,
    pub user_name: Option<String>,
    pub page_no: Option<i64>,
    pub page_size: Option<i64>,
}
